home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / space / software / unix / xanim / xanim_fl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-04  |  1.7 KB  |  65 lines

  1.  
  2. /*
  3.  * xanim_fli.h
  4.  *
  5.  * Copyright (C) 1990,1991,1992 by Mark Podlipec. 
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified and redistributed
  9.  * without fee provided that this copyright notice is preserved 
  10.  * intact on all copies and modified copies.
  11.  * 
  12.  * There is no warranty or other guarantee of fitness of this software.
  13.  * It is provided solely "as is". The author(s) disclaim(s) all
  14.  * responsibility and liability with respect to this software's usage
  15.  * or its effect upon hardware or computer systems.
  16.  *
  17.  */
  18.  
  19. typedef struct
  20. {
  21.  int size;      /*  0 size 4  */
  22.  int magic;     /*  4 size 2  */
  23.  int frames;    /*  6 size 2  */
  24.  int width;     /*  8 size 2  */
  25.  int height;    /* 10 size 2  */
  26.  int flags;     /* 12 size 2  */
  27.  int res1;      /* 14 size 2  */
  28.  int speed;     /* 16 size 2  */
  29.  int next;      /* 18 size 4  */
  30.  int frit;      /* 22 size 4  */
  31.                 /* 26 size 102 future enhancement */
  32. } Fli_Header;
  33.  
  34. typedef struct
  35. {
  36.  int size;      /*  0 size 4 size of chunk */
  37.  int magic;     /*  4 size 2 */
  38.  int chunks;    /*  4 size 2 number of chunks in frame */
  39.                 /*  4 size 8 future*/
  40. } Fli_Frame_Header;
  41.  
  42. #define CHUNK_4          4
  43. #define FLI_LC7          7
  44. #define FLI_COLOR       11
  45. #define FLI_LC          12
  46. #define FLI_BLACK       13
  47. #define FLI_BRUN        15
  48. #define FLI_COPY        16
  49. #define FLI_MINI    18
  50.  
  51. #define FLI_MAX_COLORS  256
  52.  
  53. extern void Decode_Fli_BRUN();
  54. extern void Decode_Fli_LC();
  55. extern void Fli_Buffer_Action();
  56. extern void Fli_Read_File();
  57. extern int Is_FLI_File();
  58.  
  59. /* Words(32 bits) and HalfWords(16 bits) are stored little endian
  60.  * according to the FLI spec.
  61.  */
  62. #define GETWORD      Fli_Get_Word
  63. #define GETHALFWORD  Fli_Get_HalfWord
  64.  
  65.